<?php
$tourStyle = $this->tourStyle;
$paginator = $this->paginator;
?>
<div style="background-color: white; width: 100%; height: auto; overflow: hidden">
    <div class="top-title">
        <div class="content-title">
            <h2><?php echo $this->translate('Tour')
                .' <img src="/static/default/images/bulleted.png" class="bulleted" style="margin-bottom:2px"> '
                //.'<img src="/static/default/images/bulleted.png" class="bulleted"  style="margin-bottom:2px"> '
                . $this->country['name']; ?>
            </h2>
        </div>
    </div>

    <div class="span4" id="content-left-2">
    <!-- column left -->
        <?php $columnLeft = $this->columnLeft; ?>
        <?php if($columnLeft): ?>
            <?php foreach($columnLeft as $key => $value): ?>
                <div class="block-left-2">
                	<div class="block-left-2-title">
                		<h4><?php echo $value['name']; ?></h4>
                	</div>
                	<div class="block-left-2-content">
                		<ul>
                		    <!-- tour -->
                		    <?php if($value['list_tour_category']): ?>
                		    <?php foreach($value['list_tour_category'] as $k => $v):?>
                			<li>
                				<a href="<?php echo '/tour/1/'.$v['id'].'-'. $value['id'] . '-'.str_replace(' ', '-' ,trim($v['tour_category_title'])) .'.html';?>">
                				    <?php echo $v['tour_category_title'];?>
                				</a>
                			</li>
                			<?php endforeach; ?>
                			<?php endif; ?>

                			<!-- cruise -->
                		    <?php if($value['list_cruise_category']): ?>
                		    <?php foreach($value['list_cruise_category'] as $k => $v):?>
                			<li>
                				<a href="<?php echo '/cruise/1/'.$v['id'].'-'. $value['id'] . '-'.str_replace(' ', '-' ,trim($v['cruise_category_title'])) .'.html';?>">
                				    <?php echo $v['cruise_category_title'];?>
                				</a>
                			</li>
                			<?php endforeach; ?>

                			<!-- Vietnam trip in style -->
                			<?php if($value['id'] == 1): ?>
                			<li class="menu-left">
                				<a href="#a">
                				    <?php echo $this->translate('VietNam_trip_in_style');?>
                				</a>
                				<?php if($this->listTourStyle): ?>
                				<ul>
                                    <?php foreach($this->listTourStyle as $k => $v): ?>
                    				    <li><a href="<?php echo '/tour/trip-in-style/1/'.$v['id'].'-'. $value['id'] . '-'.str_replace(' ', '-' ,trim($v['tour_style_title'])) .'.html';?>" class="<?php if($this->id == $v['id'] && $this->country['id'] == $value['id']){ echo "menu-left-active";} else echo ""; ?>"><?php echo $v['tour_style_title'];?></a></li>
                				    <?php endforeach; ?>
                				</ul>
                				<?php endif; ?>
                			</li>
                			<?php endif; ?>

                			<!-- hotel -->
                			<?php endif; ?>
                			<li>
                				<a href="/hotel"><?php $name = $value['name']; echo $this->translate("$name'_s_hotels"); ?></a>
                			</li>
                		</ul>
                		<div class="clear"><img class="spacer" src="/static/default/images/spacer.gif" /></div>
                	</div>
                </div>
        	<?php endforeach; ?>
        <?php endif; ?>
        <!-- end column left -->
        <div class="clear" style="width: 100%; height: 20px;"></div>
    </div>

    <div class="span12" id="content-right-2">
        <?php if($paginator && $tourStyle): ?>
    	<div class="content-right-2-title">
    		<h4><?php echo $tourStyle['tour_style_title'] ?></h4>
    		<div class="clear"><img class="spacer" src="/static/default/images/spacer.gif" /></div>
    	</div>
    	<div class="content-right-2-content">
    	    <?php foreach($paginator as $k => $v): ?>
    		<?php $url = "/tour/detail/". $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>
    		<div class="block-list">
    		    <div class="block-list-title">
                    <a href="<?php echo $url; ?>" title="<?php echo $v['title']; ?>">
                        <?php echo $this->snippet($v['title']); ?>
                    </a>
                </div>
                <div class="block-list-content">
					<a href="<?php echo $url; ?>"><img class="thumbnail" src="<?php echo $v['thumbnail']; ?>" /></a>
    				<div class="overview">
    					<?php echo $this->snippet($v['overview'], 140);?>
    				</div>
    				<div class="view-detail">
    				    <a href="<?php echo $url; ?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
    				</div>
                </div>
    		</div>
    		<?php endforeach; ?>
    	</div>
    	<?php endif; ?>
    	<!--// pagination -->
    	<div style="width: 100%;float:right;margin-right:10px;">
    	    <?php echo ($paginator ? $this->partial("/components/pager/table_pager.phtml",$this) : "");?>
    	</div>
    </div>
</div>